<?php
class App_Tpl_Form_Field_Url extends App_Tpl_Form_Field{

	public function PreparePost($fieldPostData, $params)
	{
		$fieldPostData = (string)$fieldPostData;
		return Mozg::Lib('str')->EscapeAbsoluteUrls($fieldPostData, true);
	}

	public function PrepareOut($fieldData, $params)
	{
		return (string)$fieldData;
	}
	
    protected function RenderField()
    {
    	return $this->render('form/field/_url.phtml');
    }
	
}